<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="menu" content="mainMenu" />
<meta name="nav" content="0" />
<meta name="acc" content="5" />
<title>监督组成员管理</title>
<script src="${ctx}/scripts/plugin/jquery.multiselect.min.js" type="text/javascript"></script>
<link href="${ctx}/styles/lightness/jquery-ui-1.8.12.custom.css"
	rel="stylesheet" />
<%@ include file="/common/extjs.jsp"%>
<script>
		$(document).ready(function() {
			//聚焦第一个输入框
			$("#name").focus();
			$("#area").multiSelect({ 
				minWidth:400,
				selectedList:5
			});
			
		 $("#officerName").click(function(){
			 UserSelector.getView(function(a,c) {
			 	 $("#officerName").val(c);
			 	 $("#officerId").val(a);
					},true
				).show();
			 });
		});
</script>
</head>

<body>
<form action="${ctx}/app/supervisor!save.action" method="post" id="inputForm"
	class='yform'>
	<div id="caption">
<h6><s:if test="id == null">添加</s:if><s:else>修改</s:else>监督组成员</h6>
</div>
<div id="content">
<table class="formtable">
	<tr>
		<td>选择人员:</td>
		<td>
		<c:if test="${not empty id }">
			<input type="text"  name="officerName"
			size="40" value="${officer.name}"  disabled="disabled"/>
		</c:if>
		<c:if test="${ empty id }">
			<input type="text" id="officerName" name="officerName"
			size="40" value="${officer.name}" class="choose"/>		
		</c:if>
			<input type="hidden" name="id" value="${id}" />
			<input type="hidden" id="officerId" name="officer.id" value="${officer.id}" />
			<input type="hidden" name="superviseGroup.id" value="${param.superviseGroupId}" />
			</td>
	</tr>
	<tr>
		<td>职责:</td>
		<td>
		<pt:code category="3066" name="duty" default="${duty}"></pt:code>
		</td>
	</tr>
	<tr>
		<td>电话:</td>
		<td><input type="text" id="phone" name="phone" size="40"
			value="${phone}" class="required" /></td>
	</tr>
	<tr>
		<td>备 注:</td>
		<td><input type="text" id="remark" name="remark"
			size="40" value="${remark}" class="required" /></td>
	</tr>
</table>
</div>
<div class="type-button"><input   type="submit"
	value="提交" />&nbsp; <input   type="button" value="取消" class="reset"
	onclick="window.close();" /></div>
</form>
</body>
</html>
